import routes from "@views/layout/routes";
const staff = [
	{
		// 首页数据
		name: "dataBoard",
		path: "/dataBoard",
		meta: { title: "数据看板", icon: "ri-home-7-fill" },
		component: () => import("@views/dataBoard/index"),
		onlyFirst: true,
	},
	{
		name: "user",
		path: "/user/userList",
		redirect: "/user/userList",
		meta: { title: "员工管理", icon: "ri-group-fill" },
		component: routes,
		children: [
			{
				name: "userList",
				path: "/user/userList",
				meta: { title: "员工列表" },
				component: () => import("@views/user/userList"),
			},
			{
				name: "userAdd",
				path: "/user/userAdd",
				meta: { title: "编辑员工", choice: "userList" },
				hidden: true,
				component: () => import("@views/user/userAdd"),
			},
			{
				name: "userAttendance",
				path: "/user/userAttendance",
				meta: { title: "员工考勤" },
				component: () => import("@views/user/userAttendance"),
			},
		],
	},
];
export default staff;
